package com.itheima.dao;

import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

public interface PermissionDao {

    @Select("select p.*  from t_permission p, t_role_permission rp where rp.permission_id=p.id and rp.role_id=#{roleId}")
    Set<Permission> findPermissionByRoleId(Integer roleId);
}
